#
# def calc(x,y):
#     return x**y
# print(calc(10,12))
#
# calc2 = lambda x,y:x**y
# print(calc2(10,12))

#
# def calc(x):
#     if x > 5:
#         return x*2
#     else:
#         return x-1
# for i in map(calc,[1,2,3,4,5,6,7,8,9]):
#     print(i)
#
#
# for i in map(lambda x:x*2 if x>5 else x-1,[1,2,3,4,5,6,7,8,9]):
#     print(i)



def add(x,y,f):
    return f(x) + f(y)

print(add(3,-5,abs))


